package jee.boot.entity.system;

import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.Table;

import javax.validation.constraints.NotNull;

/**
 * 树定位情景
 */
@Table(name = "st_tree_asign_situation")
public class TreeAsignSituation extends GeneralDataEntity<TreeAsignSituation> {
    private static final long serialVersionUID = 1L;

    /**
     * 树模型ID
     */
    @Column(name = "st_tree_model_id",data = {"treeModel.id","treeModel.no","treeModel.code","treeModel.name","treeModel.desc","treeModel.type"})
    @NotNull(message = "树模型不能为空")
    private TreeModel treeModel;//引用：ST_TREE_MODEL
    /**
     * 规则ID
     */
    @Column(name = "st_rule_id")
    private String ruleId;//引用：待定预留,ST_TREE_ASIGN_SITUATION_TYPE='DIC_SYS_TreeAsignSituationType_TAST01'时当前字段不启用
    /**
     * 规则关键字
     */
    @Column(name = "st_rule_keyword")
    private String ruleKeyword;//文本,ST_TREE_ASIGN_SITUATION_TYPE='DIC_SYS_TreeAsignSituationType_TAST01'时当前字段不启用。考虑到此处与后端程序约定的关键词可能含有URL或参数等长度较长的信息，此处字段长度设定为2000。

    public TreeAsignSituation() {
    }

    public TreeAsignSituation(String id) {
        super(id);
    }

    public TreeModel getTreeModel() {
        return treeModel;
    }

    public void setTreeModel(TreeModel treeModel) {
        this.treeModel = treeModel;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleKeyword() {
        return ruleKeyword;
    }

    public void setRuleKeyword(String ruleKeyword) {
        this.ruleKeyword = ruleKeyword;
    }
}
